import { request } from '../request'

/** 判断当前登录账号是否有指定的菜单 */
export async function hasMenu(menuPath: string) {
  return request.get(
    `${SERVICE_BASIC}/sysUser/menuPermissions`,
    {
      params: { menuUrl: menuPath },
    },
  )
}
